package com.java.compilation.vm;

public enum Command {
    ADD, SUB, NEG, EQ, GT, LT, AND, OR, NOT;

    public static Command valueFrom(String symbol) {
        switch (symbol) {
            case "+":
                return ADD;
            case "-":
                return SUB;
            case "=":
                return EQ;
            case ">":
                return GT;
            case "<":
                return LT;
            case "&":
                return AND;
            case "|":
                return OR;
            case "*":

        }
        return null;
    }
}
